Relay attack detection for interfaces using command-response pair

ABSTRACT

A reader device of an access control system comprises physical layer circuitry and processing circuitry. The processing circuitry is operatively coupled to the physical layer circuitry and is configured to initiate transmission of a command to a credential device; determine a time duration from sending the command to the credential device to receiving a response to the command from the credential device; and generate an indication when the time duration exceeds a relay attack detection threshold time duration.

TECHNICAL FIELD

Embodiments illustrated and described herein generally relate to access control systems and to preventing security breaches in access control systems.

BACKGROUND

Access control systems grant physical access to an authorized user through a controlled portal such as a secured door. Additionally, remote identity authentication for applications such as mobile online shopping or mobile banking is now a common practice. Remote authentication often involves authentication information being exchanged between a user's mobile phone and a server performing authentication. Unfortunately, attempts to defeat systems that provide secure authentication occur often. A relay attack is a type of hacking technique that can lead to a security breach of an access control system.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an illustration of an example of an access control system structure.

FIG. 2 is a timing diagram representing an example of a command sent by an initiator device and received by a receiving device.

FIG. 3 is a timing diagram representing an example of a relay attack involving a command sent by an initiator device received by a receiving device.

FIG. 4 is a flow diagram of an example of a method of operating an access control system.

FIG. 5 is a block diagram schematic of portions of an example of a verifier device.

DETAILED DESCRIPTION

A physical access control system (PACS) provides automatic physical access to an authorized user through a physical access point such as a secured door. Seamless access control systems grant physical access to an authorized user through the controlled portal without requiring intrusive actions of the user such as entering or swiping an access card at a card reader or entering a personal identification number (PIN) or password. The architecture of a PACS may vary significantly based on the application (e.g., a hotel, a residence, an office, etc.), the technology (e.g., access interfaces technology, door type, etc.), and the manufacturer.

FIG. 1 is an illustration of a basic PACS structure useful for an office application. The Access Credential is a data object, a piece of knowledge (e.g., PIN, password, etc.), or a facet of the person's physical being (e.g., face, fingerprint, etc.) that provides proof of the person's identity. The Credential Device 104 stores the Access Credential when the Access Credential is a data object. The Credential Device 104 may be a smartcard or smartphone. Other examples of Credential Devices include, but are not limited to, proximity radio frequency identification based (RFID-based) cards, access control cards, credit cards, debit cards, passports, identification cards, key fobs, near field communication (NFC) enabled devices, mobile phones, personal digital assistants (PDAs), tags, or any other device configurable to emulate a virtual credential.

The Credential Device 104 can be referred to as the Access Credential. The Reader device 102 or other verifier device retrieves and authenticates the Access Credential when a Credential Device is used and sends the Access Credential to the Access Controller 106. The Access Controller 106 compares the Access Credential to an Access Control list and grants or denies access based on the comparison, such as by controlling an automatic lock on a door for example.

The functionality of an Access Controller 106 may be included in the Reader device 102. These Reader devices can be referred to as offline readers or standalone readers. If the unlocking mechanism is included as well, a device is referred to as smart door lock which is more typically used in residential applications. Devices such as smart door locks are often battery powered, and power consumption and battery lifetime can be key parameters for the devices.

In a PACS, an access sequence consists of four parts: Proof of Presence, Intent Detection, Authentication, and Authorization. The user approaches the door and presents their access credential or credential device. This provides the Proof of Presence and Intent portions of the sequence. The reader device checks the validity of the access credential (the Authentication portion) and sends it to the access controller (e.g., using a local area network or LAN), which grants or denies access (the Authorization portion). As explained above, seamless access is access granted without intrusive actions to show Intent (e.g., presenting a card, entering a password etc.), while maintaining the same level of security as a conventional access system.

Physical access control systems are susceptible to attempts for unauthorized access such as hacking. A relay attack is a type of hacking technique related to man-in-the middle attacks. In a man-in-the-middle attack, communication between the Access Controller 106 and a Credential Device 104 is initiated by the attacking device, and the attacking device merely relays messages between the two legitimate devices. The Credential Device 104 may be remote from the controlled physical portal, but the Access Controller 106 grants access as if the legitimate Credential Device 104 were present. This may allow access to the holder of the attacking device to the controlled portal.

FIG. 2 is a timing diagram representing a command sent by an initiator device and received by a receiving device. The initiator device may be an interface terminal of a physical access control system (e.g., a Reader Device of a PACS or other verifier device) and the receiving device may be a Credential Device. The initiator device and the receiver device include physical (PHY) layer circuitry and processing circuitry. The initiator device transmits a command 210 to the receiver device. The command 210 may be included in an authentication protocol communicated between the initiator device and the receiver device.

The command 210 is transmitted by the initiator device during time T_(A1). The receiving device starts to receive the command 210 after a delay of T_(C), and the command 210 is received by the receiving device during time T_(B1). Time T_(C) is a communication gap and is the time from when the data is sent by the initiator device until the receiver device recognizes the data. When all the information of the command message is received, the receiver device executes the command during time T_(B2). There may be a receiver execution gap (T_(Be1)) between the time the receiver device receives all the data related to the command until the receiver application starts to execute the command 210. The receiver device command receive time is T_(B1)=T_(A1)+T_(Be1).

When the receiver device application completes executing the command 210, it sends a response 212 to the initiator device during time T_(B3). There may be a second receiver execution gap (T_(Be2)) between the time the receiver device executes the received command and the time until the protocol layer of the receiver device prepares the data and begins to send the response data. There is also a second communication gap T_(C) between the time that the receiver device starts to send the response 212 and the initiator device starts to receive the response. To the initiator device it appears that the time used by the receiver device to execute the command is T_(A2), where T _(A2) =T _(B2) +T _(Be1) +T _(Be2)+2(T _(C)). If the first communication gap and the second communication gap are different (e.g., T_(C1) and T_(C2)), then the term 2(T_(C)) is replace by (T_(C1)+T_(C2)). The initiator device receives the response 212 to the command during T_(A3).

The time that the receiving device receives the command 210, executes the command, and sends the response 212 is T _(B) =T _(B1) +T _(B2) T _(B3).

The total time from when the initiator device starts to send the command to when the initiator device completes receiving the response to the command is T _(A) =T _(A1) +T _(A2) +T _(A3), and T _(A) =T _(B)+2(T _(C)).

When there is a relay attack, there will be some non-zero time that the command and response pass through the attacking device or devices. The additional devices will additional communication gaps T_(C) in the transmitting and receiving of the command and response. In a perfect relay attack, the attacking device or devices will be as efficient as possible.

FIG. 3 is a timing diagram representing a command 310 sent by an initiator device, relayed by two attacking devices in a relay attack, and then received by a receiver device. The attacking devices add a communication gap T_(C) to the sending of the command 310 by the initiator device and the receiving of the command 310 by the receiver device. There is also a communication gap T_(Ca) between the attacking devices. The communication gap T_(Ca) between the attacking devices may be less than the communication T_(C). The communication between the attacking devices can be very efficient because the attacking devices can use any proprietary communication protocol. The communication gap T_(Ca) is added to the sending of the command 310 by the initiator device and the receiving of the command 310 by the receiver device.

The attacking devices also add the T_(C) and T_(Ca) communication gaps to the sending of the response 312 by the receiver device and the receiving of the response 312 by the initiator device. The total time from when the initiator device starts to send the command to when the initiator device completes receiving the response 312 to the command is T _(A) =T _(B)+4(T _(C))+2(T _(Ca)). The normal time for sending the command and receiving the response is T _(A) =T _(B)+2(T _(C)).

The difference in time between the normal communication and the relay attack communication is 2(T_(C))+2(T_(Ca)). If the communication gaps are different between directions from initiator to receiver and receiver to initiator, the time difference may be (T_(C1) +T _(C2))+(T_(Ca1)+T_(Ca2)). The difference in communication time can be used by one or both of the initiator device and the receiving device to detect the relay attack. In FIG. 3, if the time increases by an attack detection threshold duration of 2(T_(C))+2(T_(Ca)) or greater, then there may be a relay attack. These times are examples for a perfect attack scenario and the actual communication time added by an attacking device will likely be greater.

The initiator device can measure the communication times to detect a relay attack. The measurements performed can include transmitting a command-response pair. As shown in the examples of FIGS. 2 and 3, a command-response pair includes the command sent from the initiator device, the execution of the command by the receiver device, and the response sent by the receiver device. As shown in the examples of FIGS. 2 and 3, the timing of the three parts of the command-response pair are different for the initiator device and the receiving device. Because the timing is different, the whole command-response pair is measured. A measurement command-response pair from the initiator device is measured and used to set the expected timing of a command-response pair. A second command-response pair from the receiving device is measured and compared to the expected timing. If the second command-response pair exceeds the expected timing by a predetermined threshold, there may be a relay attack.

FIG. 4 is a flow diagram of an example of a method 400 of operating an access control system. At 405, a measurement command is transmitted from a verifier device of the access control system to a credential device. The measurement command may be transmitted wirelessly to the credential device according to a wireless communication protocol (e.g., the Bluetooth® protocol) using physical layer circuitry of the verifier device. The credential device may be a smart credential device (e.g., a smartphone or smartcard) storing access credential information. In variations, the interface between the verifier device and the credential device may be a wired interface, and the measurement command can be transmitted according to a wired communication protocol.

The verifier device may be an authorization-only device that compares the credential information to credential information that is allowed access, or the verifier device may be a combination authorization and control device that evaluates credential information and provides access through a physical portal (e.g., a door) when the credential information meets the criteria for access.

At 410, a response to the measurement command is received by the verifier device which, measures the time duration of the measurement command-response pair. The time duration of the measurement command-response pair may be measured from the time of transmitting the measurement command to the time that the verifier device receives the response to the measurement command from the credential device.

At 415, the processing circuitry of the verifier device sets the value of an attack detection threshold time duration using the measured time duration of the measurement command-response pair. In certain examples, the processing circuitry of the verifier device adds a predetermined time duration to the measured time duration to determines the attack detection threshold time duration.

At 420, a second command from the verifier device is transmitted to a credential device. The second command may be the same as the measurement command. In some examples, multiple command-response pairs are transmitted between the devices. In certain examples, the measurement command and the second command are both mutual authentication command messages. Any communication mechanism can be used in which the sending message is not restarted or repeated. Message chaining, splitting into multiple frames, wait time extensions, or similar mechanisms can be included in the sending message. At 425, a response to the second command is received by the verifier device and the processing circuitry of the verifier device calculates the time duration of the second command-response pair.

At 430, the processing circuitry of the verifier device generates an indication when the time duration exceeds an attack detection threshold time duration. The indication may be a signal sent to alarm circuitry of the verifier device or alarm circuitry of a second device. In variations, the indication may be a predetermined message transmitted from the verifier device to a separate device such as an access control device. The second command may be recurrently transmitted, and the second command-response pair measured to recurrently check for a relay attack.

Other parameters of the command-response pair can be calculated and used to detect a relay attack. In some examples, the processing circuitry of the verifier device calculates the communication speed of sending and receiving the measurement command-response pair and sets the value of an attack detection communication speed threshold using the measured communication speed. The communication speed of the second command-response pair is calculated and compared to the detection threshold speed. The processing circuitry of the verifier device generates the indication of a relay attack using one or both of the calculated communication speed and the determined time duration. The verifier device may send the attack detection threshold or thresholds to the credential device, and either the credential device or the verifier device may detect the threshold attack.

The measurements for detecting a relay attack may be performed by the credential device. The credential device sends the measurement command of the measurement command-response pair. The physical layer circuitry of the verifier device receives the measurement command from the credential device and initiates transmission of a response message to the credential device in response to the measurement command. The credential device may send the measured time duration to the verifier device. One or both of the credential device and the verifier device may calculate the time duration of a subsequent command-response pair, and use the calculated times to detect a relay attack.

As explained previously herein, any communication mechanism that is not restarted or repeated can be used for the sending message or command and used in the timing measurements. Conversely, communication mechanism that are restarted or repeated should not be used. This includes error correction (e.g., error correction coding or ECC). If the message used for measurement includes multiple frames, error correction should be omitted from the first frame of the multi-frame message. Error correction on the first frame may add an additional gap between both timing measurements that can lead to a wrong relay detection. Error correction on the other frames would not cause an incorrect detection using the multi-frame command-response pair.

The comparison of the timing measurements is used to decide whether the command-response pair is relayed. The timing measurement values may be based on the type of receiver device. The behavior of a hardware platform of a receiver device may result in using different comparison algorithms. For example, when a command is received on the receiver device for some platforms, it is not guaranteed it will be immediately executed. In another example, when a command is executed on the receiver device it is not guaranteed that the response will be immediately sent.

The systems, devices, and methods described herein provide a reliable way to detect a relay attack between two devices. Timing measurements for the attack detection are determined and may be shared between the devices.

FIG. 5 is a block diagram schematic of various example components of a device 500 (e.g., an embedded device) for supporting the device architectures described and illustrated herein. The device 500 of FIG. 5 could be, for example, a verifier or reader device that authenticates credential information of authority, status, rights, and/or entitlement to privileges for the holder of a credential device. At a basic level, a reader device can include an interface (e.g., one or more antennas and Integrated Circuit (IC) chip(s)), which permit the reader device to exchange data with another device, such as a credential device or another verifier device. One example of credential device is an RFID smartcard that has data stored thereon allowing a holder of the credential device to access a secure area or asset protected by the reader device.

With reference specifically to FIG. 5, additional examples of a device 500 for supporting the device architecture described and illustrated herein may generally include one or more of a memory 502, a processor 504, one or more antennas 506, a communication port or communication module 508, a network interface device 510, a user interface 512, and a power source 514 or power supply.

Memory 502 can be used in connection with the execution of application programming or instructions by processing circuitry, and for the temporary or long-term storage of program instructions or instruction sets 516 and/or authorization data 518, such as credential data, credential authorization data, or access control data or instructions, as well as any data, data structures, and/or computer-executable instructions needed or desired to support the above-described device architecture. For example, memory 502 can contain executable instructions 516 that are used by a processor 504 of the processing circuitry to run other components of device 500, to make access determinations based on credential or authorization data 518, and/or to perform any of the functions or operations described herein, such as the method of FIG. 4 for example. Memory 502 can comprise a computer readable medium that can be any medium that can contain, store, communicate, or transport data, program code, or instructions for use by or in connection with device 500. The computer readable medium can be, for example but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device. More specific examples of suitable computer readable medium include, but are not limited to, an electrical connection having one or more wires or a tangible storage medium such as a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), Dynamic RAM (DRAM), any solid-state storage device, in general, a compact disc read-only memory (CD-ROM), or other optical or magnetic storage device. Computer-readable media includes, but is not to be confused with, computer-readable storage medium, which is intended to cover all physical, non-transitory, or similar embodiments of computer-readable media.

Processor 504 can correspond to one or more computer processing devices or resources. For instance, processor 504 can be provided as silicon, as a Field Programmable Gate Array (FPGA), an Application-Specific Integrated Circuit (ASIC), any other type of Integrated Circuit (IC) chip, a collection of IC chips, or the like. As a more specific example, processor 504 can be provided as a microprocessor, Central Processing Unit (CPU), or plurality of microprocessors or CPUs that are configured to execute instructions sets stored in an internal memory 520 and/or memory 502.

Antenna 506 can correspond to one or multiple antennas and can be configured to provide for wireless communications between device 500 and another device. Antenna(s) 506 can be coupled to one or more physical (PHY) layers 524 to operate using one or more wireless communication protocols and operating frequencies including, but not limited to, the IEEE 802.15.1, Bluetooth, Bluetooth Low Energy (BLE), near field communications (NFC), ZigBee, GSM, CDMA, Wi-Fi, RF, UWB, and the like. In an example, antenna 506 may include one or more antennas coupled to one or more physical layers 524 to operate using ultra-wide band (UWB) for in band activity/communication and Bluetooth (e.g., BLE) for out-of-band (OOB) activity/communication. However, any RFID or personal area network (PAN) technologies, such as the IEEE 502.15.1, near field communications (NFC), ZigBee, GSM, CDMA, Wi-Fi, etc., may alternatively or additionally be used for the OOB activity/communication described herein.

Device 500 may additionally include a communication module 508 and/or network interface device 510. Communication module 508 can be configured to communicate according to any suitable communications protocol with one or more different systems or devices either remote or local to device 500. Network interface device 510 includes hardware to facilitate communications with other devices over a communication network utilizing any one of a number of transfer protocols (e.g., frame relay, internet protocol (IP), transmission control protocol (TCP), user datagram protocol (UDP), hypertext transfer protocol (HTTP), etc.). Example communication networks can include a local area network (LAN), a wide area network (WAN), a packet data network (e.g., the Internet), mobile telephone networks (e.g., cellular networks), Plain Old Telephone (POTS) networks, wireless data networks (e.g., IEEE 802.11 family of standards known as Wi-Fi, IEEE 802.16 family of standards known as WiMax), IEEE 802.15.4 family of standards, and peer-to-peer (P2P) networks, among others. In some examples, network interface device 510 can include an Ethernet port or other physical jack, a Wi-Fi card, a Network Interface Card (NIC), a cellular interface (e.g., antenna, filters, and associated circuitry), or the like. In some examples, network interface device 510 can include a plurality of antennas to wirelessly communicate using at least one of single-input multiple-output (SIMO), multiple-input multiple-output (MIMO), or multiple-input single-output (MISO) techniques. In some example embodiments, one or more of the antenna 506, communication module 508, and/or network interface device 510 or subcomponents thereof, may be integrated as a single module or device, function or operate as if they were a single module or device, or may comprise of elements that are shared between them.

User interface 512 can include one or more input devices and/or display devices. Examples of suitable user input devices that can be included in user interface 512 include, without limitation, one or more buttons, a keyboard, a mouse, a touch-sensitive surface, a stylus, a camera, a microphone, etc. Examples of suitable user output devices that can be included in user interface 512 include, without limitation, one or more LEDs, an LCD panel, a display screen, a touchscreen, one or more lights, a speaker, etc. It should be appreciated that user interface 512 can also include a combined user input and user output device, such as a touch-sensitive display or the like. The user interface 512 may include a separate alarm circuit 526 to indicate an alarm condition such as a relay attack or other security breach. Alarm circuit 526 may provide an audio signal to a speaker or may activate a light or present an alarm condition using a display device.

Power source 514 can be any suitable internal power source, such as a battery, capacitive power source or similar type of charge-storage device, etc., and/or can include one or more power conversion circuits suitable to convert external power into suitable power (e.g., conversion of externally-supplied AC power into DC power) for components of the device 500.

Device 500 can also include one or more interlinks or buses 522 operable to transmit communications between the various hardware components of the device. A system bus 522 can be any of several types of commercially available bus structures or bus architectures.

ADDITIONAL DISCLOSURE AND EXAMPLES

Example 1 includes subject matter (such as a read device of an access control system) comprising physical layer circuitry and processing circuitry operatively coupled to the physical layer circuitry. The processing circuitry is configured to initiate transmission of a command to a credential device, determine a time duration from sending the command to the credential device to receiving a response to the command from the credential device, and generate an indication when the time duration exceeds a relay attack detection threshold time duration.

In Example 2, the subject matter of Example 1 optionally includes processing circuitry configured to determine the time duration from a start of transmitting the command to an end of receiving the response.

In Example 3, the subject matter of one or both of Examples 1 and 2 optionally includes processing circuitry configured to initiate transmission of a measurement command to the credential device, measure a time duration of a measurement command-response pair, wherein the time duration of the measurement command-response pair is measured from the transmitting of the measurement command to receiving a response to the measurement command from the credential device, and determine the attack detection threshold time duration using the time duration of the measurement command-response pair.

In Example 4, the subject matter of Example 3 optionally includes the transmitted command and the transmitted measurement command both being mutual authentication command messages.

In Example 5, the subject matter of one or any combination of Examples 1-4 optionally includes processing circuitry configured to calculate communication speed of sending the command and receiving the response, and generate the indication using the calculated communication speed and the determined time duration.

In Example 6, the subject matter of one or any combination of Examples 1-5 optionally includes processing circuitry configured to initiate transmitting a multi-frame command to the credential device, omit error correction on the first frame of the transmitted multi-frame message and the first frame of the response message, and determine a time duration from sending the multi-frame command to receiving a response to the multi-frame command.

In Example 7, the subject matter of one or any combination of Examples 1-6 optionally includes physical layer circuitry configured to receive a measurement command from the credential device, and processing circuitry configured to initiate transmission of a response message to the credential device in response to the measurement command.

Example 8 includes subject matter (such as a method of operating an access control system) or can optionally be combined with one or any combination of Examples 1-7 to include such subject matter, comprising transmitting a command from a verifier device of the access control system to a credential device, determining, using the verifier device, a time duration from transmitting the command to receiving a response from the credential device, and generating an indication when the time duration exceeds an attack detection threshold time duration.

In Example 9, the subject matter of one or any combination of Example 8 optionally includes transmitting a measurement command from the verifier device to the credential device, measuring a time duration of a measurement command-response pair, wherein the time duration of the measurement command-response pair is measured from the transmitting of the measurement command to receiving a response to the measurement command from the credential device, and setting the attack detection threshold time duration using the time duration of the measurement command-response pair.

In Example 10, the subject matter of Example 9 optionally includes the transmitted command and the transmitted measurement command both being authentication command messages.

In Example 11, the subject matter of one or any combination of Examples 8-10 optionally includes calculating, using the verifier device, communication speed of the command and response, and generating the indication using the calculated communication speed and the determined time duration.

In Example 12, the subject matter of one or any combination of Examples 8-11 optionally includes transmitting a multi-frame command from the verifier device to the credential device, omitting error correction on the first frame of the multi-frame message using the credential device or the verifier device, and determining the time duration from transmitting the multi-frame command to receiving a response to the multi-frame command from the credential device.

In Example 13, the subject matter of one or any combination of Examples 8-12 optionally includes transmitting a command from the credential device to the verifier device, determining, using the credential device, a time duration from transmitting the command to receiving a response from the verifier device, and generating an indication when the time duration exceeds the attack detection threshold time duration.

In Example 14, the subject matter of one or any combination of Examples 8-13 optionally includes a verifier device that is a reader device and the credential device that is a smart card.

In Example 15, the subject matter of one or any combination of Examples 8-14 optionally includes a verifier device that is a reader device and the credential device that is a smart phone.

Example 16 includes subject matter or can optionally be combined with one or any combination of Examples 1-15 to include such subject matter, such as a computer-readable storage medium including instructions that, when executed by processing circuitry of a verifier device of an access control system, cause the verifier device to perform acts comprising transmitting a command to a credential device, determining a time duration from transmitting the command to receiving a response from the credential device, and generating an indication when the time duration exceeds an attack detection threshold time duration.

In Example 17, the subject matter of Example 16 optionally includes instructions that cause the verifier device to perform acts comprising transmitting a measurement command to the credential device, measuring a time duration of a measurement command-response pair, wherein the time duration of the measurement command-response pair is measured from the transmitting of the measurement command to receiving a response to the measurement command from the credential device, and setting the attack detection threshold time duration using the time duration of the measurement command-response pair.

In Example 18, the subject matter of one or both of Examples 16 and 17 optionally includes instructions that cause the verifier device to send an authentication command for both the transmitted command and transmitted measurement command.

In Example 19, the subject matter of one or any combination of Examples 16-18 optionally includes instructions that cause the verifier device to perform acts comprising calculating communication speed of the command and response, and generating the indication using the calculated communication speed and the determined time duration.

In Example 20, the subject matter of one or any combination of Examples 16-19 optionally includes instructions that cause the verifier device to perform acts comprising transmitting a multi-frame command from the verifier device to the credential device, omitting error correction on the first frame of the multi-frame message using the credential device or the verifier device, and determining the time duration from transmitting the multi-frame command to receiving a response to the multi-frame command from the credential device.

These non-limiting Examples can be combined in any permutation or combination. The above detailed description includes references to the accompanying drawings, which form a part of the detailed description. The drawings show, by way of illustration, specific embodiments in which the invention can be practiced. The above description is intended to be illustrative, and not restrictive. For example, the above-described examples (or one or more aspects thereof) may be used in combination with each other. Other embodiments can be used, such as by one of ordinary skill in the art upon reviewing the above description. The Abstract is provided to allow the reader to quickly ascertain the nature of the technical disclosure. It is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims. In the above Detailed Description, various features may be grouped together to streamline the disclosure. This should not be interpreted as intending that an unclaimed disclosed feature is essential to any claim. Rather, the subject matter may lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the Detailed Description, with each claim standing on its own as a separate embodiment, and it is contemplated that such embodiments can be combined with each other in various combinations or permutations. The scope should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled. 

What is claimed is:
 1. A reader device of an access control system, the device comprising: physical layer circuitry configured to receive a measurement command from the credential device; and processing circuitry operatively coupled to the physical layer circuitry and configured to: initiate transmission of a response message to the credential device in response to the measurement command; initiate transmission of a command from the verifier device to the credential device; determine a time duration from sending the command from the verifier device to the credential device to receiving a response to the other command from the credential device; and generate an indication when the time duration exceeds a relay attack detection threshold time duration, wherein the relay attack detection threshold time duration includes processing time to execute the other command by the credential device.
 2. The device of claim 1, wherein the processing circuitry is configured to determine the time duration from a start of transmitting the command from the verifier device to an end of receiving the response.
 3. The device of claim 1, wherein the processing circuitry is configured to: initiate transmission of another measurement command to the credential device; measure a time duration of a measurement command-response pair, wherein the time duration of the measurement command-response pair is measured from the transmitting of the other measurement command to receiving a response to the measurement command from the credential device; and determine the attack detection threshold time duration using the time duration of the measurement command-response pair.
 4. The device of claim 3, wherein the transmitted command from the verifier device and the transmitted measurement command from the verifier device are both mutual authentication command messages.
 5. The device of claim 1, wherein the processing circuitry is configured to: calculate communication speed of sending the command from the verifier device and receiving the response; and generate the indication using the calculated communication speed and the determined time duration.
 6. The device of claim 1, wherein the processing circuitry is configured to: initiate transmitting a multi-frame command to the credential device; omit error correction on the first frame of the transmitted multi-frame message and the first frame of the response message; and determine a time duration from sending the multi-frame command to receiving a response to the multi-frame command.
 7. A method of operating an access control system, the method comprising: transmitting a command from a verifier device of the access control system to a credential device; determining, using the verifier device, a time duration from transmitting the command to receiving a response from the credential device; generating an indication when the time duration exceeds an attack detection threshold time duration, wherein the attack detection threshold time duration includes processing time to execute the command by the credential device; transmitting a command from the credential device to the verifier device; determining, using the credential device, a time duration from transmitting the command from the credential device to receiving a response from the verifier device; and generating an indication when the time duration exceeds the attack detection threshold time duration.
 8. The method of claim 7, including: transmitting a measurement command from the verifier device to the credential device; measuring a time duration of a measurement command-response pair, wherein the time duration of the measurement command-response pair is measured from the transmitting of the measurement command to receiving a response to the measurement command from the credential device; and setting the attack detection threshold time duration using the time duration of the measurement command-response pair.
 9. The method of claim 8, wherein the transmitted command from the verifier device and the transmitted measurement command are both authentication command messages.
 10. The method of claim 7, including: calculating, using the verifier device, communication speed of the command from the verifier device and response; and generating the indication using the calculated communication speed and the determined time duration.
 11. The method of claim 7, wherein the transmitting a command from the verifier device includes: transmitting a multi-frame command from the verifier device to the credential device; omitting error correction on the first frame of the multi-frame message using the credential device or the verifier device; and determining the time duration from transmitting the multi-frame command to receiving a response to the multi-frame command from the credential device.
 12. The method of claim 7, wherein the verifier device is a reader device and the credential device is a smart card.
 13. The method of claim 7, wherein the verifier device is a reader device and the credential device is a smart phone.
 14. A non-transitory computer-readable storage medium including instructions that, when executed by processing circuitry of a verifier device of an access control system, cause the verifier device to perform acts comprising: receive a measurement command from a credential device; initiate transmission of a response message to the credential device in response to the measurement command; transmitting a command from the verifier device to the credential device; determining a time duration from transmitting the command from the verifier device to receiving a response from the credential device; and generating an indication when the time duration exceeds an attack detection threshold time duration, wherein the attack detection threshold time duration includes processing time to execute the command from the verifier device by the credential device.
 15. The non-transitory computer-readable storage medium of claim 14, including instructions that cause the verifier device to perform acts comprising: transmitting a measurement command from the verifier device to the credential device; measuring a time duration of a measurement command-response pair, wherein the time duration of the measurement command-response pair is measured from the transmitting of the measurement command from the verifier device to receiving a response to the measurement command from the credential device; and setting the attack detection threshold time duration using the time duration of the measurement command-response pair.
 16. The non-transitory computer-readable storage medium of claim 15, including instructions that cause the verifier device to send an authentication command for both the transmitted command and transmitted measurement command.
 17. The non-transitory computer-readable storage medium of claim 15, including instructions that cause the verifier device to perform acts comprising: calculating communication speed of the command from the verifier device and response; and generating the indication using the calculated communication speed and the determined time duration.
 18. The non-transitory computer-readable storage medium of claim 14, including instructions that cause the verifier device to perform acts comprising: transmitting a multi-frame command from the verifier device to the credential device; omitting error correction on the first frame of the multi-frame message using the credential device or the verifier device; and determining the time duration from transmitting the multi-frame command to receiving a response to the multi-frame command from the credential device. 